<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ShopNC后台管理系统</title>
<link href="css/main.css" rel="stylesheet" type="text/css" />
<smart>include file ='sys_head_config.html'</smart>
<script type="text/javascript" src="../js/select_area_<smart> $versionarea </smart>.js"></script>
<script type="text/javascript">
	function orderbyprice() {$('#order').val('2');document.getElementById('form_p_list').submit()};
	function orderbylefttime() {$('#order').val('1');document.getElementById('form_p_list').submit()};
</script>
<!--<script language="JavaScript" type="text/javascript" src="..<smart>$templatepath</smart>/javascript/jquery.color.js"></script>
<script language="JavaScript" type="text/javascript" src="..<smart>$templatepath</smart>/javascript/jquery.easing.js"></script>-->
<script>
	function tonext(whos) {
		$(whos).change(
			function(){
				var valarray=$(this).val().split('||');	
				$('#category').val(valarray[0]);
				$('#searchcate').val(valarray[0]);
				if (valarray[1]=='1') {
					$(this).next().attr('disabled','true').html('<option value="" selected="selected">数据加载中...</option>');
					$.get('../member/own_productcate.php',{action:'list',id:valarray[0]},function(data){
					DataArray = data.split("|||");var a='';for (var i = 0; i<DataArray.length-1; i++) {att=DataArray[i].split("||");id=att[0];cla=att[2];a+='<option value="'+id+'||'+cla+'">'+att[1]+((cla=='1')?' ->':'')+'</option>';};
					$(whos).next().removeAttr('disabled').html('<option value="" selected="selected"></option>'+a).nextAll().html('');
					tonext($(whos).next());
				})} else {$(whos).nextAll().html('').attr('disabled','true');
				};
		})
	};
	$().ready(function() {
		tonext('#c1');

	});
</script>
</head>
<body>
<div id="ceng"> <smart>include file ='sys_header.html'</smart>
  <div id="main" style="height:auto">
    <div id="welcome">
      <p>欢迎您进入ShopNC后台管理系统！</p>
　　　　
通过后台管理系统，您可以轻松管理商铺相关、查询信息,ShopNC为您打造方便、快捷的后台管理系统！       </div>
    <em>后台管理系统</em>
    <div id="main-left">
      <div id="product-help" style="background-image:none; height:auto; margin-top:0px; padding-top:20px; padding-bottom:20px">
      <form action="product.manage.php" method="get" name="form_p_list" id="form_p_list">
	<input type="hidden" name="action" value="<smart> $product_condition.action </smart>" />
    <input name="searchcate" type="hidden" id="searchcate" value="0" />
    <input type="hidden" name="curpage" value="1" />
    <input type="hidden" name="pcid" value="<smart> $product_condition.pcid </smart>" />
    <input type="hidden" name="searchtype" value="<smart> $product_condition.searchtype|default:'1' </smart>" />
    <input type="hidden" name="shopname" value="<smart> $product_condition.shopname </smart>" />
    <input type="hidden" name="tf_charge" value="<smart> $product_condition.tf_charge </smart>" />
    <input type="hidden" name="autopub" value="<smart> $product_condition.autopub </smart>" />
    <!--<input type="hidden" name="searchcate" value="<smart> $product_condition.searchcate </smart>" />-->
    <input type="hidden" name="order" id="order" value="<smart> $product_condition.order </smart>" />
    <input type="hidden" name="sorttype" value="<smart> $product_condition.sorttype </smart>" />
	<input type="hidden" name="search_place" id="search_place" value="<smart> $product_condition.search_place </smart>" />
<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#CCCCCC">
	  
	  <tr bgcolor="#FFFFFF">
        <td height="30" align="left" valign="middle" bgcolor="#F7FFF7">　关　键　字：
          <input id="keyword" accesskey="s" size="48" name="keyword" value="" /></td>
	  </tr>
	  <tr bgcolor="#FFFFFF">
        <td height="30" align="left" valign="middle" bgcolor="#F7FFF7">　类　　　别：
          <select name="c1" id="c1" style="WIDTH: 110px">
                <option value=""></option>
                <smart>foreach item = parent from = $ProductCateArray</smart>
                <option value="<smart>$parent.id</smart>||<smart>$parent.haveson</smart>"><smart>$parent.name</smart></option>
                <smart>/foreach</smart>
              </select>
              <select name="c2" id="c2" style="WIDTH: 110px">
              </select>
              <select name="c3" id="c3" style="WIDTH: 110px">
              </select>
              <select name="c4" id="c4" style="WIDTH: 110px">
              </select>
              
             </td>
	  </tr>
	  <tr bgcolor="#FFFFFF">
        <td height="30" align="left" valign="middle" bgcolor="#F7FFF7">　卖家会员名：
          <input name="shopname" value="" />
		</td>
	  </tr>
	  <tr bgcolor="#FFFFFF">
        <td height="30" align="left" valign="middle" bgcolor="#F7FFF7">　价格范围　：
          <input size="10" name="price_min" value="" />
              元 至
              <input size="10" name="price_max" value="" />
              元 
		</td>
	  </tr>
	  <tr bgcolor="#FFFFFF">
        <td height="30" align="left" valign="middle" bgcolor="#F7FFF7">　交易类型　：
			<select name="sell_type" id="sell_type">
			  <option <smart> if $product_condition.sell_type eq 'all' </smart> selected="selected" <smart> /if </smart> value="all">全部</option>
              <option <smart> if $product_condition.sell_type eq '0' </smart> selected="selected" <smart> /if </smart> value="0">拍卖</option>
			  <option <smart> if $product_condition.sell_type eq '1' </smart> selected="selected" <smart> /if </smart> value="1">一口价</option>
			  <option <smart> if $product_condition.sell_type eq '2' </smart> selected="selected" <smart> /if </smart> value="2">团购</option>
            </select>
		</td>
	  </tr>
	  <tr bgcolor="#FFFFFF">
        <td height="30" align="left">　
          <input name="submit3" value="搜索" type="submit" />
		</td>
	  </tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#cccccc" style="margin-top:20px">
	<tr bgcolor="#ffffff">
  		<!--<td width="5%">选择</td>	-->
  		<td width="5%" height="30" align="center" valign="middle" bgcolor="#DBE6DE">序号</td>
    	<td width="10%" height="30" align="center" valign="middle" bgcolor="#DBE6DE">宝贝名称</td>
  		<td width="10%" height="30" align="center" valign="middle" bgcolor="#DBE6DE">卖家</td>
    	<td width="10%" height="30" align="center" valign="middle" bgcolor="#DBE6DE"><input name="Submit2" type="button" onclick="orderbyprice()" value="价格排序" /><!--价格排序--></td>
    	<td width="10%" height="30" align="center" valign="middle" bgcolor="#DBE6DE">运费</td>
    	<td width="10%" height="30" align="center" valign="middle" bgcolor="#DBE6DE"><label>
            <select name="select" id="select" onchange="$('#search_place').val(this.value);form_p_list.submit()">
              <option value="0">所在地</option>
            </select>
            </label></td>
		<td width="10%" height="30" align="center" valign="middle" bgcolor="#DBE6DE"><a href="javascript:orderbylefttime()">剩余时间</a></td>
    	<td width="20%" height="30" align="center" valign="middle" bgcolor="#DBE6DE">操作</td>
    </tr>	
	<smart> section name=i loop=$product_array </smart>
  	<tr bgcolor="#ffffff">
  		<!--<td width="5%"><input name="chboxPid[]" type="checkbox" value="<smart> $product_array[i].p_id </smart>"/></td>-->	
  		<td height="66" align="center" valign="middle"><a href="<smart> $site_url </smart>/home/product.php?action=view&amp;pid=<smart> $product_array[i].p_code </smart>" target="_blank"><img src="<smart> $site_url </smart>/<smart> $product_array[i].p_pic|default:'/templates/default/home/images/default.jpg' </smart>" alt="<smart> $product_array[i].p_name </smart>" border="0" style="vertical-align:middle; margin-left:10px;margin-right:10px; width:50px; height:50px" /></a></td>
    	<td width="10%" height="66" align="center" valign="middle"><a href="<smart> $site_url </smart>/home/product.php?action=view&amp;pid=<smart> $product_array[i].p_code </smart>" target="_blank"><smart> $product_array[i].p_name </smart></a></td>
  		<td width="10%" height="66" align="center" valign="middle"><a href="<smart> $site_url </smart>/store/index.php?userid=<smart> $product_array[i].member_id </smart>" target='_blank'><smart> $product_array[i].shopmaster </smart></a></td>
    	<td width="10%" height="66" align="center" valign="middle"><smart> assign var='sell_type' value = $product_array[i].p_sell_type </smart><smart> $p_sell_type[$sell_type] </smart><br/>
    	  <smart> $product_array[i].p_price </smart></td>
    	<td width="10%" height="66" align="center" valign="middle"><smart> $product_array[i].p_tf_py </smart></td>
		<td width="10%" height="66" align="center" valign="middle"><smart> $product_array[i].p_province </smart><smart> $product_array[i].p_city </smart></td>
    	<td width="10%" height="66" align="center" valign="middle"><smart> $product_array[i].left_days </smart>天<smart> $product_array[i].left_hours </smart>时<smart> $product_array[i].left_minutes </smart>分</td>
    	<td width="20%" height="66" align="center" valign="middle"><a href="product.manage.php?action=modi&pid=<smart> $product_array[i].p_code </smart>"><smart> $langhrfProductEdit </smart></a>|<a href="#" onclick="if(confirm('确定要进行此操作吗？')){location.href='product.manage.php?action=irregularities&pid=<smart> $product_array[i].p_code </smart>';}else{return false;}"><smart> $langProductIrregularities </smart></a><br/>
    	  <a href="#" onclick="if(confirm('确定要进行此操作吗？')){location.href='product.manage.php?action=under&chboxPid=<smart> $product_array[i].p_code </smart>';}else{return false;}"><smart> $langProductUnder </smart></a>|<a href="#" onclick="if(confirm('确定要进行此操作吗？')){location.href='product.manage.php?action=del&chboxPid=<smart> $product_array[i].p_code </smart>';}else{return false;}"><smart> $langbtnProductDel </smart></a></td>
    </tr>
	<smart> /section </smart>
<!--  	<tr bgcolor="#ffffff">
    	<td colspan="9" align="center"><input type="submit" name="Submit" value="<smart> $langbtnProductDel </smart>" /></td>
  	</tr>-->
  	<tr bgcolor="#ffffff">
    	<td height="30" colspan="9" align="center"><smart> $page_list </smart></td>
  	</tr>
</table>
</form>
      </div>
    </div>
    	<smart>include file ='sys_right_help.html'</smart>
    <div style="clear:both"></div>
  </div>
  <div id="bottom"> <smart>include file ='sys_footer.html'</smart> </div>
</div>
<script type="text/javascript">
//ifshowcode=1;
selectprovince = "<smart> $product_condition.search_place </smart>";
iniProvince(document.getElementById('select'));
</script>
</body>
</html>
